﻿var popupWindow = null;

function openHelp(page, helpWindow, anchor) {
    var width = 900;
    var height = 600;
    leftPosition = (screen.width) ? (screen.width-width)/2 : 0;
    topPosition = (screen.height) ? (screen.height-height)/2 : 0;

    settings = 'height=' + height + ', width=' + width + ', top=' + topPosition +
                ', left=' + leftPosition + ', scrollbars=yes, directories=no, menubar=no, status=no' +
                ', location=no';

    var url = '/Help?page=' + page;

    popupWindow = window.open(url, helpWindow, settings);   
}
